package cn.micai.base.task;

import java.util.concurrent.Callable;
import java.util.concurrent.RunnableFuture;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/7/16 15:38
 * @Description:
 */
public interface CancellableTask<T> extends Callable<T> {

    void cancel();

    RunnableFuture<T> newTask();

}
